package com.itheima.consumer.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Classname BaseMessageListener
 * @Description TODO MQ监听类
 * @Date 2021/3/22 10:05
 * @Created by gan
 */
@Component
@RocketMQMessageListener(
        topic = "baseTopic36",consumerGroup = "baseGroup"
)
public class BaseMessageListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String o) {
        System.out.println("消息中间件的内容；"+o);
    }
}
